package com.gxuwz.zhangjiahui.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gxuwz.zhangjiahui.entity.Conclusion;
import com.gxuwz.zhangjiahui.entity.Leader;
import com.gxuwz.zhangjiahui.mapper.ConclusionMapper;
import com.gxuwz.zhangjiahui.mapper.LeaderMapper;
import com.gxuwz.zhangjiahui.service.IConclusionService;
import com.gxuwz.zhangjiahui.service.ILeaderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zhangjiahui
 * @since 2021-06-20
 */
@Service
public class ConclusionServiceImpl extends ServiceImpl<ConclusionMapper, Conclusion> implements IConclusionService {

    @Autowired
    private ConclusionMapper conclusionMapper;

    @Override
    public Conclusion findConclusionById(Conclusion conclusion) {
        return conclusionMapper.findConclusionById(conclusion);
    }

    @Override
    public List<Conclusion> findConclusionAll() {
        return conclusionMapper.findConclusionAll();
    }

    @Override
    public IPage<Conclusion> selectConclusionPage(Page<Conclusion> page, Wrapper<Conclusion> wrapper) {
        return conclusionMapper.selectConclusionPage(page, wrapper);
    }

    @Override
    public void addConclusion(Conclusion conclusion) {
        conclusionMapper.addConclusion(conclusion);
    }

    @Override
    public void updateConclusionById(Conclusion conclusion) {
        conclusionMapper.updateConclusionById(conclusion);
    }

    @Override
    public void deleteConclusionById(Conclusion conclusion) {
        conclusionMapper.deleteConclusionById(conclusion);
    }
}
